package com.service.base.generator.app.model;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import lombok.Data;

import javax.persistence.*;
import java.io.Serializable;

/**
 * H2 数据库中表 配置的数据源
 * @author wangyongkun
 * @create 2020/12/13
 */
@Entity
@Data
@Table(name = "db_config")
@JsonIgnoreProperties({ "handler","hibernateLazyInitializer" })
public class DbConfig implements Serializable {
    private static final long serialVersionUID = -8217369483578520027L;
    /** 数据库 */
    @Id
    @GeneratedValue(strategy = GenerationType.AUTO)
    private Long id;
    private String dbName;
    private String url="";
    private String driver="";
    private String username="";
    private String password="";
    private String schema;
    private String catalog;
    private String dbType;
}
